package cn.cms.constants;

import cn.cms.util.StringUtil;
import com.google.common.collect.Maps;

import java.util.HashMap;
import java.util.Map;
import java.util.ResourceBundle;

public class Constants {

    public static final Integer STATE_ON = 1;
    public static final Integer STATE_OFF = 0;

    public static final String S_DOWNLOAD_APK_URL = "http://s.nowyingshi.com/jrys/";
    public static final String S_DOWNLOAD_IMG_URL = "http://s.nowyingshi.com/";
    public static final String SOURCE_SITE_DIR = "/data/apps/public/";
    public static final String SOURCE_LINK_DIR = "/data/apps/public/jrys/";

    /**
     * 电视剧
     */
    public static final Integer VIDEO_TYPE_1 = 1;
    /**
     * 电影
     */
    public static final Integer VIDEO_TYPE_2 = 2;
    /**
     * 动漫
     */
    public static final Integer VIDEO_TYPE_3 = 3;
    /**
     * 综艺
     */
    public static final Integer VIDEO_TYPE_4 = 4;
    /**
     * 纪录片
     */
    public static final Integer VIDEO_TYPE_16 = 16;

    public static final String NEED_UPDATE_INTERCEPTOR = "need_update_interceptor";
    /**
     * 今日影视
     */
    public static final String ENABLED_PRO_JRYS = "1";
    /**
     * 韩剧大全
     */
    public static final String ENABLED_PRO_HJDQ = "2";
    /**
     * (芝麻)影视大全
     */
    public static final String ENABLED_PRO_YSDQ = "303";
    /**
     * (无广告)影视大全
     */
    public static final String ENABLED_PRO_YSDQ_NOADS = "304";
    /**
     * 今日视频
     */
    public static final String ENABLED_PRO_JRSP = "399";
    /**
     * 所有产品
     */
    public static final String ENABLED_PRO_ALL = ENABLED_PRO_JRYS;

    /**
     * 所有渠道
     */
    public static final String CHANNEL = "xiaomi,oppo,huawei,meizu,levono,gzld01,ZTE,Smartisan,Samsung,letv,baidu,91,hiapk,360,myapp,anzhi,appchina,nduoa,mumayi,eoemarket,taobao,sougou,gfan,wandoujia,storewo,official_update,tencent,vivo,meizuAndroidPhone,samsungAndroidPhone,mc01,szhhysdq,lenovostore,qitzy,lenovostore,tiantianysdq2,tiantian1";

    public static final String PLAT_FORM_IPHONE = "iphone";
    public static final String PLAT_FORM_IPAD = "ipad";
    public static final String PLAT_FORM_APHONE = "aphone";
    public static final String PLAT_FORM_APD = "apad";
    public static final String PLAT_FORM_ATV = "atv";
    public static final String PLAT_FORM_ALL = PLAT_FORM_IPHONE + "," + PLAT_FORM_IPAD + "," + PLAT_FORM_APHONE + "," + PLAT_FORM_APD + "," + PLAT_FORM_ATV;

    public static final String SESSION_KEY = "loginUser";

    public static final String SESSION_ID = "galaxy_cms";
    public static final int PAGE_SIZE = 20;
    public static final String API_SERCRET = "!QAZ#WSX";
    public static final Map<Integer, String> SOURCE_ID = Maps.newHashMap();
    public static final Map<Integer, String> TYPE_ID = Maps.newHashMap();
    public static final Map<Integer, String> CATEGORY_ID = Maps.newHashMap();
    public static Map<Integer, Map<String, String>> SECOND_CATEGORY = Maps.newHashMap();

    /**
     * 地域黑名单标识
     */
    public final static int AREA_CONTROL_BLACK = 0;
    /**
     * 地域白名单标识
     */
    public final static int AREA_CONTROL_WHITE = 1;
    private static final String BUNDLE_NAME = "application";
    private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME);
    /**
     * SEARCH_DOMAIN=测试环境公网IP 47.94.235.115；正式环境10.0.0.4:80
     */
    public final static String SEARCH_DOMAIN = RESOURCE_BUNDLE.getString("SEARCH_DOMAIN");

    /**
     * SEARCH_DOMAIN=测试环境公网http://47.93.7.3:8091/privateSearch；正式环境http://10.0.0.5:8198/privateSearch
     */
    public final static String SEARCH_INNER_SOLR = RESOURCE_BUNDLE.getString("search_inner_solr");
    public final static String SEARCH_INNER_RANK_DATA_URL = RESOURCE_BUNDLE.getString("search_inner_rank_data_url");

    /**
     * 每台云服SSH默认认证私钥绝对路径
     */
    public final static String PUB_KEY_PATH = RESOURCE_BUNDLE.getString("PUB_KEY_PATH");
    // 生产环境推送文件夹：/data/apps/proxy/classes/
    public final static String FILE_TO_PATH = RESOURCE_BUNDLE.getString("FILE_TO_PATH");
    // 生产环境暂存文件夹：/data/apps/cms/WEB-INF/classes/
    public final static String FILE_FROM_PATH = RESOURCE_BUNDLE.getString("FILE_FROM_PATH");
    // 系统标志
    public final static String SYS = RESOURCE_BUNDLE.getString("sys");
    // groovy文件存放位置
    public final static String GROOVY_PATH = RESOURCE_BUNDLE.getString("groovy_path");
    public final static String USERS_FILE = "users.txt";
    public final static String AD_INFO_FILE = "ads.txt";            // 新的文件用于存放广告数据
    public final static String PROMOTION_INFO_FILE = "promotions.txt";     // 新的文件用于存放开机图,退出图等非广告数据
    public final static String SUSPENDSITES_FILE = "suspendsites.txt";
    public final static String SUSPENDSITES_FILE_NEW = "suspendsites_new.txt";
    public final static String SUSPENDSITES_FILE2 = "suspendsites2.txt";
    public final static String DOWNPIECE_FILE = "downPiece.txt";
    public final static String CLOUDTRAYCODE_FILE = "cloudcode.txt";
    public final static String DOWNLOADSWITCH_FILE = "appInstall.txt";
    public final static String VIDEO_OFF_FILE = "videoOff.txt";
    public final static String DOWNLOAD_OFF_FILE = "downloadOff.txt";
    public final static String LITE_APP_FILE = "playerCtrl.txt";
    public final static String DOWNLOAD_CONTROL_FILE = "downloadCtrl.txt"; //片源下载控制
    public final static String SITE_MARKSORTABLE_FILE = "siteMarkSortable.txt"; //站点源播放顺序调整
    public final static String LEVEL1CITIES = "level1Cities,10000,CN_1_5_1,10001,CN_2_36_1,10008,CN_9_126_1,10018,CN_19_246_1,CN_19_248_1";
    public final static String LEVEL2CITIES = "level2Cities,10002,CN_3_37_2,CN_3_38_2,10003,CN_4_48_2,10005,CN_8_94_2,10006,CN_6_71_2,CN_6_72_2,10007," +
            "CN_7_85_2,10009,CN_15_186_2,CN_15_187_2,CN_15_188_2,CN_15_191_2,10010,CN_11_140_2,CN_11_141_2,CN_11_142_2,10011,CN_10_127_2,CN_10_128_2,CN_10_131_2," +
            "10012,CN_12_151_2,10013,CN_13_167_2,CN_13_168_2,10014,CN_17_220_2,10015,CN_18_232_1,10016,CN_16_203_2,10017,CN_14_176_2,10018,CN_19_251_2,CN_19_262_2," +
            "10019,CN_20_276_2,10021,CN_22_758_2,10022,CN_23_323_2,10023,CN_25_353_2,10029,CN_27_376_1";
    public final static String LEVEL3CITIES = "level3Cities,10002,CN_3_40_3,CN_3_42_3,CN_3_45_3,CN_3_46_3,10004,CN_5_59_3,CN_5_60_3,CN_5_33_3,10005,CN_8_99_3,10006," +
            "CN_6_73_3,10007,CN_7_86_3,10009,CN_15_190_3,CN_15_192_3,CN_15_195_3,CN_15_193_3,CN_15_194_3,CN_15_198_3,CN_15_199_3,CN_15_200_3,CN_15_201_3,CN_15_590_3," +
            "10010,CN_11_143_3,CN_11_145_3,CN_11_146_3,CN_11_149_3,10011,CN_10_129_3,CN_10_130_3,CN_10_132_3,CN_10_538_3,CN_10_135_3,CN_10_136_3,CN_10_137_3,CN_10_138_3," +
            "10012,CN_12_152_3,10013,CN_13_171_3,CN_13_172_3,10014,CN_17_223_3,10015,CN_18_237_3,CN_18_238_3,10016,CN_16_205_3,CN_16_215_3,10018,CN_19_249_3,CN_19_252_3,CN_19_253_3," +
            "CN_19_254_3,CN_19_256_3,CN_19_263_3,10019,CN_20_277_3,10020,CN_21_281_3,10022,CN_23_328_3,10024,CN_24_344_3,10026,CN_28_386_3,10027,CN_30_408_3,10028,CN_29_400_3," +
            "10029,CN_27_378_3,CN_27_385_3";
    public final static String LEVEL4CITIES = "level4Cities,10002,CN_3_39_4,CN_3_41_4,CN_3_43_4,CN_3_44_4,CN_3_47_4,10003,CN_4_49_4,CN_4_51_4,CN_4_52_4,CN_4_53_4,CN_4_56_4,CN_4_58_4,CN_4_57_4," +
            "CN_4_55_4,10004,CN_5_62_4,CN_5_31_4,CN_5_32_4,10005,CN_8_95_4,CN_8_103_4,CN_8_105_4,10006,CN_6_74_4,CN_6_75_4,CN_6_76_4,CN_6_77_4,CN_6_78_4,CN_6_80_4,CN_6_81_4,CN_6_82_4,CN_6_83_4," +
            "10007,CN_7_87_4,CN_7_89_4,CN_7_91_4,10009,CN_15_189_4,CN_15_196_4,10010,CN_11_144_4,CN_11_147_4,10011,CN_10_133_4,CN_10_139_4,10012,CN_12_153_4,CN_12_155_4,CN_12_158_4,CN_12_160_4," +
            "CN_12_161_4,CN_12_162_4,CN_12_163_4,10013,CN_13_169_4,CN_13_170_4,CN_13_173_4,CN_13_174_4,CN_13_175_4,10014,CN_17_221_4,CN_17_222_4,CN_17_228_4,CN_17_226_4,CN_17_227_4,CN_17_229_4," +
            "10015,CN_18_233_4,CN_18_234_4,CN_18_236_4,CN_18_240_4,CN_18_241_4,CN_18_242_4,CN_18_243_4,CN_18_244_4,10016,CN_16_204_4,CN_16_206_4,CN_16_210_4,CN_16_209_4,CN_16_207_4,CN_16_211_4," +
            "CN_16_212_4,CN_16_214_4,CN_16_216_4,CN_16_217_4,CN_16_218_4,CN_16_219_4,10017,CN_14_179_4,CN_14_181_4,CN_14_184_4,CN_14_182_4,CN_14_440_4,10018,CN_19_250_4,CN_19_247_4,CN_19_255_4,CN_19_260_4," +
            "CN_19_261_4,CN_19_265_4,10019,CN_20_269_4,CN_20_275_4,10022,CN_23_324_4,CN_23_325_4,CN_23_326_4,CN_23_327_4,CN_23_331_4,CN_23_332_4,CN_23_333_4,CN_23_334_4,CN_23_688_4,CN_23_343_4,CN_23_793_4," +
            "10023,CN_25_354_4,CN_25_355_4,10024,CN_24_346_4,CN_24_349_4,10029,CN_27_379_4,CN_27_380_4,CN_27_381_4";
    public final static String LEVEL5CITIES = "level5Cities,10003,CN_4_50_5,CN_4_54_5,10004,CN_5_61_5,CN_5_35_5,CN_5_34_5,CN_8_106_5,CN_5_66_5,CN_5_70_5,10005,CN_8_96_5,CN_8_97_5,CN_8_98_5,CN_8_100_5,CN_8_101_5,CN_8_102_5," +
            "CN_8_104_5,10006,CN_6_79_5,CN_6_84_5,10007,CN_7_88_5,CN_7_90_5,CN_7_92_5,CN_7_93_5,10009,CN_15_197_5,10010,CN_11_148_5,CN_11_150_5,10012,CN_12_154_5,CN_12_156_5,CN_12_157_5,CN_12_159_5,CN_12_165_5,CN_12_561_5," +
            "CN_12_166_5,CN_12_439_5,10014,CN_17_224_5,CN_17_225_5,CN_17_230_5,CN_17_446_5,CN_17_775_5,10015,CN_18_235_5,CN_18_239_5,CN_18_776_5,10016,CN_16_208_5,CN_16_213_5,10017,CN_14_177_5,CN_14_178_5,CN_14_180_5,CN_14_447_5," +
            "CN_14_185_5,10018,CN_19_257_5,CN_19_258_5,CN_19_259_5,CN_19_264_5,CN_19_266_5,10019,CN_20_270_5,CN_20_271_5,CN_20_272_5,CN_20_273_5,CN_20_274_5,CN_20_279_5,CN_20_278_5,CN_20_280_5,CN_20_441_5,CN_20_442_5,10020,CN_21_282_5," +
            "CN_21_283_5,10022,CN_23_329_5,CN_23_330_5,CN_23_335_5,CN_23_342_5,CN_23_337_5,CN_23_341_5,CN_23_338_5,CN_23_760_5,CN_23_340_5,10023,CN_25_363_5,CN_25_356_5,CN_25_365_5,CN_25_772_5,CN_25_368_5,CN_25_771_5,CN_25_358_5,CN_25_767_5," +
            "CN_25_357_5,CN_25_766_5,CN_25_364_5,CN_25_366_5,CN_25_770_5,10024,CN_24_345_5,CN_24_350_5,CN_24_347_5,CN_24_764_5,CN_24_763_5,CN_24_762_5,10025,CN_26_369_5,CN_26_370_5,CN_26_371_5,CN_26_372_5,CN_26_373_5,CN_26_374_5,CN_26_375_5," +
            "10026,CN_28_387_5,CN_28_779_5,CN_28_389_5,CN_28_390_5,CN_28_393_5,CN_28_392_5,CN_28_396_5,CN_28_391_5,CN_28_397_5,CN_28_394_5,CN_28_395_5,CN_28_398_5,CN_28_399_5,10027,CN_30_409_5,CN_30_410_5,CN_30_411_5,CN_30_722_5,10028,CN_29_401_5," +
            "CN_29_402_5,CN_29_784_5,CN_29_785_5,CN_29_405_5,CN_29_782_5,CN_29_407_5,10029,CN_27_377_5,CN_27_382_5,CN_27_383_5,CN_27_384_5,10030,CN_31_412_5,CN_31_413_5,CN_31_414_5,CN_31_415_5,CN_31_422_5,CN_31_419_5,CN_31_421_5,CN_31_786_5,CN_31_789_5," +
            "CN_31_788_5,CN_31_787_5,CN_31_790_5,CN_31_425_5,CN_31_426_5";
    public final static String TOURISMCITIES = "tourismCities,10000,CN_1_5_1,10001,CN_2_36_1,10008,CN_9_126_1,10010,CN_11_140_2,CN_11_141_2,CN_11_142_2,CN_11_143_3,CN_11_144_4,CN_11_145_3,CN_11_146_3,CN_11_147_4,CN_11_148_5,CN_11_149_3,CN_11_150_5," +
            "10011,CN_10_127_2,CN_10_128_2,CN_10_131_2,10014,CN_17_220_2,10015,CN_18_232_1,10018,CN_19_246_1,CN_19_248_1,10019,CN_20_269_4,10020,CN_21_281_3,CN_21_282_5,CN_21_283_5,10021,CN_22_758_2,10022,CN_23_323_2,CN_23_761_5,CN_23_793_4,10023," +
            "CN_25_353_2,CN_25_365_5,CN_25_767_5,CN_25_766_5,CN_25_770_5,10029,CN_27_376_1";
    public final static String REONLINECITIES = "reOnlineCities,10010,CN_11_140_2,CN_11_141_2,CN_11_142_2,CN_11_143_3,CN_11_144_4,CN_11_145_3,CN_11_146_3,CN_11_147_4,CN_11_148_5,CN_11_149_3,CN_11_150_5";

    public static Map<String, String> LEVELCITYMAP = new HashMap<>();

    // ip,<name,password>
    public static Map<String, Map<String, String>> serverInfo = new HashMap<String, Map<String, String>>();

    static {

        Map<String, String> tempCategory;
        //站点源
        SOURCE_ID.put(1, "自有内容");
        SOURCE_ID.put(2, "东方财富");
        SOURCE_ID.put(3, "北青网");
        SOURCE_ID.put(4, "蚂蜂窝");
        SOURCE_ID.put(5, "轻芒");
        SOURCE_ID.put(6, "今日头条");
        SOURCE_ID.put(7, "17173");
        SOURCE_ID.put(8, "网易");
        SOURCE_ID.put(9, "好奇心日报");
        SOURCE_ID.put(10, "易车网");
        SOURCE_ID.put(11, "光明网");
        SOURCE_ID.put(12, "一点资讯");
        SOURCE_ID.put(13, "康泰纳仕");
        SOURCE_ID.put(14, "豆瓣");


        //内容类型
        TYPE_ID.put(1, "图文资讯");
        TYPE_ID.put(2, "短视频");
        TYPE_ID.put(3, "图集");
        TYPE_ID.put(4, "广告");

        //分类
        CATEGORY_ID.put(1, "新闻");
        tempCategory = new HashMap<>();
        tempCategory.put("101", "国内");
        tempCategory.put("102", "国际");
        tempCategory.put("103", "政务");
        tempCategory.put("104", "综合");
        SECOND_CATEGORY.put(1, tempCategory);

        CATEGORY_ID.put(2, "财经");
        tempCategory = new HashMap<>();
        tempCategory.put("201", "宏观");
        tempCategory.put("202", "股票");
        tempCategory.put("203", "理财");
        tempCategory.put("204", "金融");
        tempCategory.put("205", "证券");
        tempCategory.put("206", "房产");
        tempCategory.put("207", "基金");
        tempCategory.put("208", "民生");
        tempCategory.put("209", "期货");
        tempCategory.put("210", "外汇");
        tempCategory.put("211", "保险");
        tempCategory.put("212", "公司");
        tempCategory.put("213", "行情");
        tempCategory.put("214", "人物");
        tempCategory.put("215", "综合");
        SECOND_CATEGORY.put(2, tempCategory);

        CATEGORY_ID.put(3, "娱乐");
        tempCategory = new HashMap<>();
        tempCategory.put("301", "明星");
        tempCategory.put("302", "影视");
        tempCategory.put("303", "综艺");
        tempCategory.put("304", "音乐");
        tempCategory.put("305", "综合");
        SECOND_CATEGORY.put(3, tempCategory);

        CATEGORY_ID.put(4, "体育");
        tempCategory = new HashMap<>();
        tempCategory.put("401", "篮球");
        tempCategory.put("402", "足球");
        tempCategory.put("403", "网球");
        tempCategory.put("404", "羽毛球");
        tempCategory.put("405", "乒乓球");
        tempCategory.put("406", "台球");
        tempCategory.put("407", "赛车");
        tempCategory.put("408", "水上");
        tempCategory.put("409", "户外");
        tempCategory.put("410", "橄榄球");
        tempCategory.put("411", "冰雪");
        tempCategory.put("412", "格斗");
        tempCategory.put("413", "棋牌");
        tempCategory.put("414", "运动会");
        tempCategory.put("415", "综合");
        SECOND_CATEGORY.put(4, tempCategory);

        CATEGORY_ID.put(5, "搞笑");
        tempCategory = new HashMap<>();
        tempCategory.put("501", "萌宠");
        tempCategory.put("502", "儿童");
        tempCategory.put("503", "两性");
        tempCategory.put("504", "段子");
        tempCategory.put("505", "囧人");
        tempCategory.put("506", "笑话");
        tempCategory.put("507", "趣闻");
        tempCategory.put("508", "奇闻");
        tempCategory.put("509", "图片");
        tempCategory.put("510", "神回复");
        tempCategory.put("511", "神吐槽");
        tempCategory.put("512", "GIF图片");
        tempCategory.put("513", "综合");
        SECOND_CATEGORY.put(5, tempCategory);

        CATEGORY_ID.put(6, "文化");
        tempCategory = new HashMap<>();
        tempCategory.put("602", "历史");
        tempCategory.put("603", "人文");
        tempCategory.put("604", "创意");
        tempCategory.put("605", "设计");
        tempCategory.put("606", "艺术");
        tempCategory.put("607", "文学");
        tempCategory.put("608", "佛学");
        tempCategory.put("609", "民俗");
        tempCategory.put("610", "思想");
        tempCategory.put("611", "综合");
        SECOND_CATEGORY.put(6, tempCategory);

        CATEGORY_ID.put(7, "社会");
        tempCategory = new HashMap<>();
        SECOND_CATEGORY.put(7, tempCategory);

        CATEGORY_ID.put(8, "科技");
        tempCategory = new HashMap<>();
        tempCategory.put("801", "互联网");
        tempCategory.put("802", "智能硬件");
        tempCategory.put("803", "通讯");
        tempCategory.put("804", "生活服务");
        tempCategory.put("805", "手机");
        tempCategory.put("806", "VR");
        tempCategory.put("807", "车科技");
        tempCategory.put("808", "产品");
        tempCategory.put("809", "数码");
        tempCategory.put("810", "科学");
        tempCategory.put("811", "探索");
        tempCategory.put("812", "人物");
        tempCategory.put("813", "企业");
        tempCategory.put("814", "综合");
        SECOND_CATEGORY.put(8, tempCategory);

        CATEGORY_ID.put(9, "军事");
        tempCategory = new HashMap<>();
        tempCategory.put("901", "国际");
        tempCategory.put("902", "中国");
        tempCategory.put("903", "台海");
        tempCategory.put("904", "东海");
        tempCategory.put("905", "南海");
        tempCategory.put("906", "军史");
        tempCategory.put("907", "武器");
        tempCategory.put("908", "海陆空");
        tempCategory.put("909", "综合");
        SECOND_CATEGORY.put(9, tempCategory);

        CATEGORY_ID.put(10, "汽车");
        tempCategory = new HashMap<>();
        tempCategory.put("1001", "新车");
        tempCategory.put("1002", "评测");
        tempCategory.put("1003", "车险");
        tempCategory.put("1004", "导购");
        tempCategory.put("1005", "报价");
        tempCategory.put("1006", "降价");
        tempCategory.put("1007", "养车");
        tempCategory.put("1008", "车贷");
        tempCategory.put("1009", "行情");
        tempCategory.put("1010", "特惠车");
        tempCategory.put("1011", "二手车");
        tempCategory.put("1012", "技术");
        tempCategory.put("1013", "车展");
        tempCategory.put("1014", "综合");
        SECOND_CATEGORY.put(10, tempCategory);

        CATEGORY_ID.put(11, "生活");
        tempCategory = new HashMap<>();
        tempCategory.put("1102", "健康");
        tempCategory.put("1103", "星座");
        tempCategory.put("1104", "健身");
        tempCategory.put("1105", "彩票");
        tempCategory.put("1107", "美食");
        tempCategory.put("1108", "育儿");
        tempCategory.put("1109", "购物");
        tempCategory.put("1110", "数码");
        tempCategory.put("1111", "家居");
        tempCategory.put("1112", "旅游");
        tempCategory.put("1113", "八卦");
        tempCategory.put("1114", "彩票");
        tempCategory.put("1115", "摄影");
        tempCategory.put("1116", "综合");
        SECOND_CATEGORY.put(11, tempCategory);

        CATEGORY_ID.put(12, "女性");
        tempCategory = new HashMap<>();
        tempCategory.put("1201", "时尚");
        tempCategory.put("1202", "情感");
        tempCategory.put("1203", "服饰");
        tempCategory.put("1204", "美容");
        tempCategory.put("1205", "亲子");
        tempCategory.put("1206", "美体");
        tempCategory.put("1207", "母婴");
        tempCategory.put("1208", "美女");
        tempCategory.put("1209", "综合");
        SECOND_CATEGORY.put(12, tempCategory);

        CATEGORY_ID.put(13, "动漫");
        tempCategory = new HashMap<>();
        SECOND_CATEGORY.put(13, tempCategory);

        CATEGORY_ID.put(14, "杂谈");
        tempCategory = new HashMap<>();
        SECOND_CATEGORY.put(14, tempCategory);

        CATEGORY_ID.put(15, "游戏");
        tempCategory = new HashMap<>();
        SECOND_CATEGORY.put(15, tempCategory);

        CATEGORY_ID.put(16, "热点");
        tempCategory = new HashMap<>();
        SECOND_CATEGORY.put(16, tempCategory);

        CATEGORY_ID.put(17, "视频");
        tempCategory = new HashMap<>();
        SECOND_CATEGORY.put(17, tempCategory);

        LEVELCITYMAP.put("1", LEVEL1CITIES);
        LEVELCITYMAP.put("2", LEVEL2CITIES);
        LEVELCITYMAP.put("3", LEVEL3CITIES);
        LEVELCITYMAP.put("4", LEVEL4CITIES);
        LEVELCITYMAP.put("5", LEVEL5CITIES);
        LEVELCITYMAP.put("6", TOURISMCITIES);
        LEVELCITYMAP.put("7", REONLINECITIES);


    }

    public static Map<String, Map<String, String>> getServerInfo() {
        return serverInfo;
    }

    public static String getProAid(String aid) {
        try {
            if (StringUtil.isNotEmptyOrNull(aid)) {
                String[] strs = aid.split("_");
                return strs[1].trim();
            } else {
                return null;
            }
        } catch (Exception e) {
            return null;
        }
    }
}
